//
//  TestViewController.m
//  模仿简书自定义Tabbar（纯代码）
//
//  Created by 余钦 on 16/5/30.
//  Copyright © 2016年 yuqin. All rights reserved.
//

#import "TestViewController.h"
@implementation TestViewController
- (void)viewDidLoad{
    [super viewDidLoad];
    self.title = @"'TestView";
    self.view.backgroundColor = [UIColor cyanColor];
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    [btn setTitle:@"Back" forState:UIControlStateNormal];
    btn.frame = CGRectMake(0, 0, 40, 40);
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:btn];
    [btn addTarget:self action:@selector(handleBtn) forControlEvents:UIControlEventTouchUpInside];
}

- (void)handleBtn {
    [TabBarView_Manager popViewControllerAnimated:YES];
}
@end
